<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<c:if test="${userName == null}">
	<form name="main" method="post" action=".">
	<table>
		<tr>
			<td>User name:</td>
			<td><input type="text" name="username" /></td>
		</tr>
		<tr>
			<td>Password:</td>
			<td><input type="password" name="password" /></td>
		</tr>
		<tr>
			<td></td>
			<td><input type="submit" value="Log in" /></td>
		</tr>
	</table>
	<br />
	<br />
	<br />
	<div style="text-align: center"><a href="./?a=create_account">Need
	a user name?</a> <input type="hidden" name="a" value="login" /></div>
	</form>
</c:if>

<c:if test="${userName != null}">
	You are logged in as ${userName}.
</c:if>